package com.zbf.config;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import com.netflix.zuul.exception.ZuulException;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/21  17:32
 * 描述:
 */
@Component
public class MyFilter extends ZuulFilter {

    /**
     * 作者: LCG
     * 日期: 2021/6/21  17:32
     * 描述: 
     * @Param []   pre routing  post
     * @Return java.lang.String
     */
    @Override
    public String filterType() {
        return "pre";
    }


    @Override
    public int filterOrder() {
        return 0;
    }
    @Override
    public boolean shouldFilter() {

        return true;
    }
    @Override
    public Object run() throws ZuulException {



        return null;
    }
}
